﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ElveTouch
{
    public partial class LogForm : Form
    {
        public LogForm()
        {
            InitializeComponent();
        }

        public LogForm(List<string> items)
            : this()
        {
            try
            {
                if (items != null || items.Count > 0)
                {
                    StringBuilder sb = new StringBuilder();
                    foreach (string s in items)
                        sb.Append(s + "\r\n\r\n");

                    textBox1.Text = sb.ToString();
                }
                else
                    textBox1.Text = "No errors have occurred.";
            }
            catch (Exception ex)
            {
            }
        }
    }
}